package com.xkcyy.one.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("message")
public class Message extends BasicEntity {
    
    /**
     * 对话ID
     */
    private Long conversationId;
    
    /**
     * 消息内容
     */
    private String content;
    
    /**
     * 消息角色
     */
    private String role;
    
    /**
     * 推理内容
     */
    private String reasonContent;
    
    /**
     * 消息角色枚举
     */
    public static class Role {
        /**
         * 用户
         */
        public static final String USER = "USER";
        
        /**
         * 助手
         */
        public static final String ASSISTANT = "ASSISTANT";
    }
}
